package edu.sctu.zhengsenwen.month201506.day20150624.json;


/**
 * Created by user15 on 2015/6/24.
 */
public class Main {

    public static void main(String[] args) {

        HttpRequest httpRequest = new HttpRequest();

        String result = httpRequest.sendPost("http://api.ii.com.cn/goods/apprec", "");

        JsonUtil jsonUtil = new JsonUtil();

        JsonAppbean jsonAppbean = jsonUtil.toJsonString(result);

        System.out.println(jsonAppbean.error);
        System.out.println(jsonAppbean.count);
        System.out.println(jsonAppbean.message);

        for (int i = 0; i < jsonAppbean.list.size(); i++) {
            System.out.println(jsonAppbean.list.get(i).rec_id);
            System.out.println(jsonAppbean.list.get(i).goods_id);
            System.out.println(jsonAppbean.list.get(i).category_id);
        }

    }
}



